package com.competition.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.competition.entity.ProductCart;
import com.competition.entity.ProductCartDto;
import com.competition.mapper.ProductCartMapper;
import com.competition.service.ProductCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCartServiceImpl  extends ServiceImpl<ProductCartMapper, ProductCart> implements ProductCartService {
    @Autowired
    private ProductCartMapper productCartMapper;
    @Override
    public List<ProductCartDto> selectAllByUserId(String userId) {
        return productCartMapper.selectAllByUserId(userId);
    }
}
